package edu.sctu.practice.class02.shilaihong.assign03.text2;

/**
 * Created by admin on 2015/10/29.
 */
public class Max {

    public static Comparable max(Comparable o1,Comparable o2){
        if (o1.CompareTo(o2) == 0){
            System.out.println("第一个类面积较大！");
            return o1;
        }else {
            System.out.println("第二个类面积较大！");
            return o2;
        }
    }


    public static void max(ComparableCircle comparableCircle, ComparableCircle nextComparableCircle) {

    }

    public static void max(ComparableCylinder comparableCylinder, ComparableCircle nextComparableCircle) {

    }
}
